import Vue from 'vue'
import moment from 'moment'
import App from './App.vue'
import router from './router'

//引入Element-UI
//import ElementUI from 'element-ui';
//Vue.use(ElementUI);

//import 'element-ui/lib/theme-chalk/index.css';
//import element from './element/index'
//Vue.use(element);

//引入store
import store from './store'

Vue.config.productionTip = false

// 获取年份
Vue.filter('moment', function (value, formatString) {
  formatString = formatString || 'YYYY-MM-DD HH:mm:ss'
  return moment(value).format(formatString) // value可以是普通日期 20170723
})

/* eslint-disable no-new */
new Vue({
  router: router,
  store: store,
  render: h => h(App),
}).$mount('#app')
